<template>
    <div class="container">
      <el-row class="container--item__header">
        <el-col :span="8" class="container--item__left">
          <i class="el-icon-arrow-left"></i>
        </el-col>
        <el-col :span="8" class="container--item__login">
          登录
        </el-col>
      </el-row>
      <el-row  class="container--item__body">
        <el-form label-width="80px">
          <el-form-item label="用户名：">
            <el-input
              placeholder="请输入用户名"
              clearable></el-input>
          </el-form-item>
          <el-form-item label="密码：">
            <el-input
              type="password"
              placeholder="请输入密码"
              clearable></el-input>
          </el-form-item>
        </el-form>
      </el-row>
      <el-row class="container--button__box">
        <el-button type="success" round class="container--btn__login"><span @click="login">登录</span></el-button>
      </el-row>
    </div>
</template>

<script>
export default {
  name: 'login',
  methods: {
    login () {
      this.$router.push({name: 'pay'})
    }
  }
}
</script>

<style scoped lang="scss">
  .container--item__header{
    background: orange;
    color: #fff;
    line-height: 60px;
    .container--item__left{
      padding-left: 30px;
    }
    .container--item__login{
      text-align: center;
      font-size: 18px;
    }
  }
  .container--item__body{
    margin-top: 20px;
  }
  .container--button__box{
    text-align: center;
    .container--btn__login{
      margin-top: 20px;
      font-size: 18px;
      border-radius: 5px;
      width: 80vw;
      height: 60px;
      text-align: center;
    }
  }
</style>
